package com.swzl.model.wx.controller;

import com.swzl.common.web.response.Result;
import com.swzl.common.web.response.ResultController;
import com.swzl.constant.ControllerConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fog
 * @date 2024年11月03日 11:45
 */

@RestController
@Api(tags = {"用户信息控制层"})
@RequestMapping(ControllerConstant.API_WX_PREFIX + "user/")
public class UserController extends ResultController {

    @GetMapping("test")
    @ResponseBody
    @ApiOperation(value = "测试")
    public Result test() {
        return Result.success("Hello");
    }

    @ResponseBody
    @GetMapping("info")
    public Result info() {
        return success("123r");
    }

}
